from ..debugger import TypeRegistrator
from . import checker, ir

# @lldb.command registration
from . import (
    cmds as cmds,
)

LLDB_TYPE_CATEGORY = 'es2panda'


def register(r: TypeRegistrator):
    r.add_summary('ark::es2panda::util::StringView', '${var.sv_}', novalue=True)
    r.add_summary('ark::es2panda::varbinder::Scope', '${var.node_}', novalue=True)
    checker.register(r)
    r.add_type(
        ir.AstNode,
    )
    r.enable()
